package com.ruoyi.cmdb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 解析对象 tb_resolution
 * 
 * @author ruoyi
 * @date 2023-01-27
 */
public class Resolution extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 域名 */
    @Excel(name = "域名")
    private String domainName;

    /** ip */
    @Excel(name = "ip")
    private String ip;

    /** 适用等级（0运维 1开发 2业务） */
    @Excel(name = "适用等级", readConverterExp = "0=运维,1=开发,2=业务")
    private String resolution;

    /** 环境 （0dev 1test 2prev 3prod） */
    @Excel(name = "环境 ", readConverterExp = "0=dev,1=test,2=prev,3=prod")
    private String env;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setDomainName(String domainName) 
    {
        this.domainName = domainName;
    }

    public String getDomainName() 
    {
        return domainName;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setResolution(String resolution) 
    {
        this.resolution = resolution;
    }

    public String getResolution() 
    {
        return resolution;
    }
    public void setEnv(String env) 
    {
        this.env = env;
    }

    public String getEnv() 
    {
        return env;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("domainName", getDomainName())
            .append("ip", getIp())
            .append("resolution", getResolution())
            .append("env", getEnv())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
